import {createAPI} from '@/utils/request'

export const list = data => createAPI('/system/user/userList', 'get', data)
// export const simple = data => createAPI('/sys/user/simple', 'get', data)
export const add = data => createAPI('/system/user/add', 'post', data)
export const update = data => createAPI(`/system/user/edit`, 'post', data)
export const remove = data => createAPI(`/system/user/del`, 'get', data)
export const detail = data => createAPI(`/system/user/info`, 'get', data)
export const assignRoles = data => createAPI(`/system/user/setRole`, 'post', data)
